package controller

import (
	"net/http"

	"github.com/gin-gonic/gin"
	"probe.org/cjd/first/service"
)

func GetUserList(c *gin.Context) {
	var messages string
	messages = service.GetMessages()
	var todoList = make(map[string]string)
	todoList["ret"] = messages
	var a = map[string]string{
		"code": "200",
		"msg":  "success",
		"data": "todoList",
	}
	c.JSON(http.StatusOK, a)
}
